// 搜索
.infosearch {
	position: fixed;
	top: 0;
	z-index: 10;
	width: 190px;
	height: 44px;
	background-color: #fff;

	.infosearch-input {
		width: 190px;
		height: 38px;
		border: none;
		margin-top: 5px;
		background-color: #FFF6F1;
	}
}

// 消息列表
.infoblock {
	padding-top: 40px;
	margin-top: 20px;
	// 断网
	.disconnect{
		width:190px;
		padding: 0 5px;
		height: 40px;
		line-height: 40px;
		font-size: 14px;
		border-radius:5px;
	}
	.infoeach {
		width: 190px;
		padding: 5px;
		margin-bottom: 20px;

		.infoeachl {
			position: relative;
			width: 39px;
			height: 39px;

			.infoeachl-p {
				width: 40px;
				height: 40px;
				border-radius: 5px;
			}

			.infoeachl-num {
				position: absolute;
				right: -2px;
				bottom: -2px;
				width: 12px;
				height: 12px;
				line-height: 12px;
				text-align: center;
				color: #fff;
				font-size: 10px;
				border-radius: 50%;
				border: 3px solid #fff;
			}
		}

		.infoeachr {
			flex: 1;
			margin-left: 10px;

			.infoeachr-name {
				line-height: 24px;
				font-size: 14px;
				color: #333333;
			}

			.infoeachr-msg {
				line-height: 16px;
				font-size: 12px;
			}
		}

		.infoeachtime {
			color: #999999;
			font-size: 12px;
			margin-top: 30px;
		}
	}

	.activeinfoeach {
		background-color: var(--mainColor);

		.infoeachr {
			.infoeachr-name {
				color: #fff;
			}

			.infoeachr-msg {
				color: #fff !important;
			}
		}
	}
}

// 右部信息部分
.rblock {
	position: relative;
	flex: 1;
	z-index: 99;
}

.ointrtitle {
	width: 96%;
	padding: 0px 2% 10px;
	height: 40px;
	border-bottom: 1px solid #EEEEEE;
	color: #333333;
	font-size: 14px;
	background-color: #fff;

	.ointrtitle-name {
		line-height: 20px;
		font-size: 14px;
		color: #333;
		font-weight: bold;
	}

	.ointrtitle-status {
		line-height: 20px;

		.ointrtitle-statusd {
			width: 10px;
			height: 10px;
			margin-top: 5px;
			border-radius: 50%;
		}

		.ointrtitle-statusx {
			color: #FF5E03;
			font-size: 12px;
			margin-left: 5px;
		}
	}
}

.chbatblock {
	position: relative;
	width: 99%;
	height: 91vh;
	padding-top: 10px;
	justify-content: space-between;
}

.chbat {
	position: relative;
	flex: 1;

	.chbattop {
		width: 100%;
		height: 75vh;
		// min-height:74vh;
		// max-height:81vh;
		overflow-y: auto;
	}

	.chbatorder {
		position: sticky;
		top: 0;
		z-index: 10;
		width: 99%;
		background-color: var(--bgColor);
		border-radius: 10px;

		.chbatordert {
			width: 96%;
			padding: 0 2%;
			line-height: 40px;
			border-bottom: 1px solid #fff;
			justify-content: space-between;
			font-size: 14px;
		}

		.chbatorderb {
			width: 96%;
			padding: 10px 2%;

			.chbatorderbname {
				font-size: 14px;
				color: #333333;
				font-weight: bold;
			}

			.chbatorderbmsg {
				position: relative;
				font-size: 12px;
				color: #333333;
				justify-content: space-between;
				margin-top: 10px;

				.chbatorderbmsgtxt {
					width: 96%;
					line-height: 20px;
					color: #333333;
					font-size: 12px;
					max-height: 20px;
					overflow: hidden;
					transition-property: max-height;
					transition-duration: .6s;
				}

				.orderbshow {
					max-height: 350px;
					overflow-y: scroll;
				}

				.chbatorderbmsgicon {
					position: relative;
					width: 12px;
					height: 12px;
					margin-top: 5px;
					margin-left: 10px;
					text-align: center;
					line-height: 10px;
					color: #fff;
					font-size: 10px;
					padding: 1px;
					border-radius: 50%;

					span {
						position: absolute;
						left: 2px;
					}
				}
			}
		}
	}

	.chbatmsg {
		width: 100%;
		margin-top: 10px;
		position: relative;

		.chbatmsgeach {
			width: 100%;
			margin-bottom: 8px;

			// 右击
			.rightVisible {
				position: fixed;
				z-index: 10;
				width: 50px;
				border-radius: 8px;

				.rightVisibleeach {
					width: 50px;
					text-align: center;
					line-height: 24px;
					font-size: 12px;
					color: #333;
					background-color: #fff;
				}

				.rightVisibleeach:hover {
					background-color: #E6E6E6;
				}
			}

			.chbatmsgsj-sysmsg {
				line-height: 30px;
				padding: 0 10px;
				display: inline-block;
				margin: 10px auto;
				text-align: center;
				font-size: 14px;
				color: #333;
				background-color: #F4F4F4;
				border-radius: 10px;
			}

			.chbatmsghead {
				width: 35px;
				height: 35px;
				margin: 0 8px;

				.chbatmsgheadimg {
					width: 35px;
					height: 35px;
				}
			}

			.chbatmsgdata {
				position: relative;
				width: 60%;

				.chbatmsgsj-t {
					font-size: 12px;
					line-height: 20px;
					margin-bottom: 5px;

					.chbatmsgsj-ttime {
						color: #999;
					}
				}

				.chbatmsgsj-msg {
					max-width: 100%;
					display: inline-block;
					// padding:7px;
					// background-color:#F4F4F4;
					border-radius: 10px;
					line-height: 20px;

					.chbatmsgsj-text {
						font-size: 14px;
						color: #333333;
						line-height: 20px;
						margin-bottom: 5px;
						text-align: left;
						img{
							max-width: 200px !important;
						}
						.chbatmsgsj-textspan,span {
							display: inline-block;
							padding: 7px;
							background-color: #F4F4F4;
							white-space: pre-wrap;  //只对中文起作用
							word-wrap: break-word;  // 只对英文起作用，以单词作为换行依据
							word-break: break-all;  // 只对英文起作用，以字母作文换行依据（长链接需要这个）
						}
					}

					.chbatmsgsj-image {
						max-width: 100%;
						height: auto;
						padding: 7px;
						background-color: #F4F4F4;
						margin-bottom: 5px;
						img {
							max-width: 100%;
							height: auto;
						}
					}

					.chbatmsgsj-Audio {
						position: relative;
						padding: 7px;
						background-color: #F4F4F4;
						margin-bottom: 5px;
						width: 100px;
						height: 20px;
						border-radius: 10px;

						.chbatmsgsj-Audiofile {
							position: absolute;
							z-index: 10;
							width: 100px;
							height: 20px;
						}

						.chbatmsgsj-Audioicon {
							width: 20px;
							height: 20px;

							.chbatmsgsj-Audioiconimg {
								width: 20px;
								height: 20px;
							}
						}

						.chbatmsgsj-Audiotxt {
							font-size: 14px;
							color: #333333;
							line-height: 20px;
							margin-left: 5px;
						}
					}

					.chbatmsgsj-file {
						padding: 7px;
						background-color: #F4F4F4;
						margin-bottom: 5px;
						width: 200px;
						padding: 9px;
						border: 1px solid var(--mainColor);
						border-radius: 10px;
						justify-content: space-between;

						.downfileicon {
							width: 34px;
							height: 34px;
							margin-top: 2px;

							img {
								width: 100%;
								height: 34px;
							}
						}

						.downfilemsg {
							width: 62%;

							.downfilemsgname {
								color: #777777;
								font-size: 14px;
								line-height: 20px;
							}

							.downfilemsg-rl {
								color: #777777;
								font-size: 10px;
								line-height: 20px;
							}
						}

						.downicon {
							font-size: 18px;
							line-height: 40px;
							color: #999999;
						}
					}
				}
			}
		}

		.chbatmsgl {
			position: relative;
			left: 0;
		}

		.chbatmsgr {
			position: relative;
			justify-content: flex-end;
		}
	}
}

.chbatsend {
	position: sticky;
	bottom: 0;
	width: 99%;
	padding: 8px 0;
	background-color: #F6F6F6;
	border-radius: 10px;

	.chbatsendt {
		position: relative;
		height: 25px;
		justify-content: space-between;

		// 表情部分 START
		.diaemojibgfg {
			position: fixed;
			left: 0;
			top: 0;
			z-index: 1;
			width: 100%;
			height: 100%;
			opacity: 0;
			background-color: red;
		}

		.diaemoji {
			position: absolute;
			z-index: 2010;
			bottom: 40px;
			left: -150px;
			z-index: 50;
			width: 500px;
			height: 300px;
			border-radius: 10px;
			background-color: #fff;
			box-shadow: 0 0 20px #cfd2d1;

			.diaemojit {
				width: 96%;
				height: 230px;
				padding: 10px 2%;
				border-top-right-radius: 10px;
				border-top-left-radius: 10px;

				.diaemojitmain {
					width: 100%;
					height: 230px;
					overflow-y: auto;

					.diaemojiticon-icon {
						display: inline-block;
						padding: 5px;
					}

					.diaemojiticon-icon:hover {
						background-color: #E6E6E6;
						border-radius: 5px;
					}

					.diaemojitphotoimage {
						display: flex;
						position: relative;
						width: 50px;
						height: 50px;
						margin: 5px;
						background-color: #E6E6E6;
						border-radius: 5px;

						.diaemojitphotoimage-upload {
							position: absolute;
							left: 0;
							top: 0;
							z-index: 1;
							width: 55px;
							height: 55px;
							display: flex;

							.diaemojitphotoimage-icon {
								position: absolute;
								left: 50%;
								top: 50%;
								margin-top: -11px;
								margin-left: -11px;
								font-size: 18px;
								color: #333;
							}
						}

						.diaemojitphotoimage-img {
							margin: auto;
							z-index: 2;
							max-width: 100%;
							max-height: 100%;
							border-radius: 5px;
						}
					}
				}
			}

			.diaemojib {
				position: absolute;
				bottom: 0;
				width: 96%;
				background-color: #fff;
				border-top: 1px solid #ccc;
				padding: 10px 2% 5px;
				height: 30px;
				line-height: 30px;
				border-bottom-left-radius: 10px;
				border-bottom-right-radius: 10px;

				.diaemojibeach {
					width: 30px;
					height: 30px;
					background-color: #fff;
					margin-left: 10px;
					border-radius: 5px;
					display: flex;

					img {
						margin: auto;
						width: 25px;
						height: 25px;
					}
				}

				.acdiaemojibeach {
					background-color: #E6E6E6;
				}
			}
		}

		// 删除
		.emoVisible {
			position: fixed;
			z-index: 10;
			width: 50px;
			border-radius: 8px;

			.emoVisibleeach {
				width: 50px;
				text-align: center;
				line-height: 24px;
				font-size: 12px;
				color: #333;
				background-color: #fff;
			}

			.emoVisibleeach:hover {
				background-color: #E6E6E6;
			}
		}

		// 表情部分 END

		.chbatsendtl {
			img {
				margin: 0 5px;
			}
		}

		.chbatsendtr {
			position: relative;
			margin-right: 10px;
			width: 130px;
			height: 25px;
			background-color: var(--bgColor);
			border-radius: 7px;
			padding: 0 9px;

			.chbatsendtr-z {
				font-size: 12px;
				color: #FFA878;
			}

			.chbatsendtr-s {
				position: absolute;
				top: 0;
				right: 0;
				width: 25px;
				height: 25px;
				background-color: var(--mainColor);
				border-radius: 7px;
				display: flex;

				.chbatsendtr-sp {
					margin: auto;
					width: 14px;
					height: 14px;
				}
			}
		}
	}

	.chbatsendb {
		.chbatsendbtxt {
			width: 98%;
			height:90px;
			padding: 5px 1%;
			border: none;
			outline: none;
			resize: none;
			background-color: #F6F6F6;
			color: #333;
			font-size: 14px;
			white-space: pre-wrap;  //只对中文起作用
			word-wrap: break-word;  // 只对英文起作用，以单词作为换行依据
			word-break: break-all;  // 只对英文起作用，以字母作文换行依据（长链接需要这个）
			img{
				max-width: 200px !important;
			}
		}
	}
}

// 弹窗
.replacebtn {
	margin-top: 30px;
	display: flex;
	justify-content: flex-end;

	.replacebtneach {
		width: 130px;
		height: 50px;
		border-radius: 10px;
		color: #fff;
		font-size: 16px;
		margin-left: 25px;
	}
}

// 上传文件list
.flielist {
	margin-top: 10px;

	.flieitem {
		justify-content: space-between;
		line-height: 30px;
		padding: 0 10px;
		border-radius: 5px;

		.flieiteml {
			.flieitemlicon {
				font-size: 16px;
			}

			.flieitemlname {
				font-size: 14px;
				margin-left: 8px;
			}
		}

		.flieitemr {
			width: 30px;
			text-align: center;
			font-size: 16px;
			color: #999;
			text-align: right;
		}
	}

	.flieitem:hover {
		background-color: #F7F7F7;
	}
}

// 上传图片
.sepaypathinput {
	padding: 20px 0;

	.upload-demo {
		width: 240px;
		margin: auto;

		.sepaypathinputphoto {
			position: relative;
			width: 240px;
			height: 240px;
			background-color: #F6F6F6;
			border-radius: 10px;

			.sepaypathinputphotoicon {
				font-size: 40px;
				color: #999999;
			}

			.sepaypathinputphotoimg {
				position: absolute;
				top: 0;
				left: 0;
				z-index: 10;
				width: 100%;
				height: 100%;
			}
		}
	}
}
// 播放视频-弹窗
.videoclass {
	width: 450px;
	height: 400px;
	text-align: center;
}

// 引用部分
.quote {
	margin-top: 8px;
	background-color:#F4F4F4;
	border-radius: 10px;
}

.quoteblockshow {
	position: absolute;
	z-index: 2010;
	bottom: 40px;
	left: 0px;
	z-index: 50;
	max-width: 200px;
	border-radius: 10px;
	background-color: #fff;
	box-shadow: 0 0 20px #cfd2d1;

	.quotebsclose {
		position: absolute;
		right: -6px;
		top: -5px;
		font-size: 20px;
		color: #bebfbf;
	}

	.quotebs {
		padding: 5px 10px;
		height: 30px;
		line-height: 30px;
		font-size: 14px;
		color: #333;
	}
}
// 预览图片下载
.ylphoto{
	position:absolute;
	bottom:0;
	width:100%;
	height:45px;
	text-align:center;
	background:#fff;
	.ylphotoeach{
		display: inline-block;
		width: 36px;
		height: 36px;
		margin-top:4px;
		line-height: 36px;
		border-radius: 2px;
		font-size:22px;
		color: #333;
		background-color:#fff;
	}
	.ylphotoeach:hover{
		background-color:#F3F3F4;
	}
}